package com.rudolphliu.entity;

import java.util.Date;

public class Users {
    private String uid;

    private String nameTitle;

    private String nameFirst;

    private String nameLast;

    private String email;

    private String username;

    private String password;

    private String phone;

    private String pictureLarge;

    private String pictureMedium;

    private String pictureThumbnail;

    private String nat;

    private Date createTime;

    public Users(String uid, String nameTitle, String nameFirst, String nameLast, String email, String username, String password, String phone, String pictureLarge, String pictureMedium, String pictureThumbnail, String nat, Date createTime) {
        this.uid = uid;
        this.nameTitle = nameTitle;
        this.nameFirst = nameFirst;
        this.nameLast = nameLast;
        this.email = email;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.pictureLarge = pictureLarge;
        this.pictureMedium = pictureMedium;
        this.pictureThumbnail = pictureThumbnail;
        this.nat = nat;
        this.createTime = createTime;
    }

    public Users() {
        super();
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid == null ? null : uid.trim();
    }

    public String getNameTitle() {
        return nameTitle;
    }

    public void setNameTitle(String nameTitle) {
        this.nameTitle = nameTitle == null ? null : nameTitle.trim();
    }

    public String getNameFirst() {
        return nameFirst;
    }

    public void setNameFirst(String nameFirst) {
        this.nameFirst = nameFirst == null ? null : nameFirst.trim();
    }

    public String getNameLast() {
        return nameLast;
    }

    public void setNameLast(String nameLast) {
        this.nameLast = nameLast == null ? null : nameLast.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPictureLarge() {
        return pictureLarge;
    }

    public void setPictureLarge(String pictureLarge) {
        this.pictureLarge = pictureLarge == null ? null : pictureLarge.trim();
    }

    public String getPictureMedium() {
        return pictureMedium;
    }

    public void setPictureMedium(String pictureMedium) {
        this.pictureMedium = pictureMedium == null ? null : pictureMedium.trim();
    }

    public String getPictureThumbnail() {
        return pictureThumbnail;
    }

    public void setPictureThumbnail(String pictureThumbnail) {
        this.pictureThumbnail = pictureThumbnail == null ? null : pictureThumbnail.trim();
    }

    public String getNat() {
        return nat;
    }

    public void setNat(String nat) {
        this.nat = nat == null ? null : nat.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Users other = (Users) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getNameTitle() == null ? other.getNameTitle() == null : this.getNameTitle().equals(other.getNameTitle()))
            && (this.getNameFirst() == null ? other.getNameFirst() == null : this.getNameFirst().equals(other.getNameFirst()))
            && (this.getNameLast() == null ? other.getNameLast() == null : this.getNameLast().equals(other.getNameLast()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getPictureLarge() == null ? other.getPictureLarge() == null : this.getPictureLarge().equals(other.getPictureLarge()))
            && (this.getPictureMedium() == null ? other.getPictureMedium() == null : this.getPictureMedium().equals(other.getPictureMedium()))
            && (this.getPictureThumbnail() == null ? other.getPictureThumbnail() == null : this.getPictureThumbnail().equals(other.getPictureThumbnail()))
            && (this.getNat() == null ? other.getNat() == null : this.getNat().equals(other.getNat()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getNameTitle() == null) ? 0 : getNameTitle().hashCode());
        result = prime * result + ((getNameFirst() == null) ? 0 : getNameFirst().hashCode());
        result = prime * result + ((getNameLast() == null) ? 0 : getNameLast().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getPictureLarge() == null) ? 0 : getPictureLarge().hashCode());
        result = prime * result + ((getPictureMedium() == null) ? 0 : getPictureMedium().hashCode());
        result = prime * result + ((getPictureThumbnail() == null) ? 0 : getPictureThumbnail().hashCode());
        result = prime * result + ((getNat() == null) ? 0 : getNat().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}